// 2013-9-1下午01:08:47  net.betou.trade.main.manager.ContentMng.java

package net.betou.trade.main.manager;

import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.AgentAndAdmins;
import net.betou.trade.entity.main.Content;
import net.betou.trade.entity.main.User;

/**
 * 
 * @author 叶装装
 */
public interface ContentMng{

	public Content save( Content bean, AgentAndAdmins admin, Integer channelId );
	
	public Content deleteById( Integer id );
	
	public Content [ ] deleteByIds( Integer [ ] ids );
	
	public Content update( Content bean, Integer channelId  );
	
	public Content update( Content bean, boolean created  );
	
	public Content findById( Integer id );
	
	public Pagination getPage( AgentAndAdmins admin, String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize );
	
	public Content findMyContent( Integer id, Integer adminId, boolean system );
	
	public Pagination getPage(  User user, int pageNo, int pageSize );
	
	
}
